<template>
  <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

      <!-- Sidebar user panel (optional): 侧边栏的用户面板(可选)-->
      <div class="user-panel">
        <div class="pull-left image">
          <img :src="userImg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info text-center">
          <p>fangjiaxiaobai</p>
          <!-- Status -->
          <a href="#"><i class="fa fa-circle text-success"></i>在线</a>
        </div>
      </div>

      <!-- search form (Optional) -->
      <form action="#" method="get" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="q" class="form-control" placeholder="查找...">
          <span class="input-group-btn">
              <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
              </button>
            </span>
        </div>
      </form>
      <!-- /.search form -->

      <!-- Sidebar Menu ：侧边栏 菜单-->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="header">头部</li>
        <!-- Optionally, you can add icons to the links -->
        <li class="active level1"><router-link to="HelloWorld"><i class="fa fa-link"></i> <span>一级菜单0</span></router-link></li>
        <li class="level1"><a href="#"><i class="fa fa-link"></i> <span>一级菜单1</span></a></li>
        <li class="treeview level2">
          <a href="#"><i class="fa fa-link"></i> <span>二级级菜单</span>
            <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
          </a>
          <ul class="treeview-menu">
            <li class="level2"><a href="#" class="level2">二级菜单0</a></li>
            <li class="level2"><a href="#" class="level2">二级菜单1</a></li>
            <li class="level2"><a href="#" class="level2">二级菜单2</a></li>
          </ul>
        </li>
        <li class="treeview level1">
          <a href="#"><i class="fa fa-link"></i> <span>三级菜单演示</span>
            <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="#" class="level2"><i class="fa fa-subscript"></i>二级菜单1</a></li>
            <li class="treeview">
              <a href="#" class="level2"><i class="fa fa-circle-o"></i>二级菜单2
                <span class="pull-right-container">
                      <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="#"><i class="fa fa-circle-o level3"></i>三级菜单1</a></li>
                <li class="level3"><a href="#"><i class="fa fa-circle-o level3"></i>三级菜单1</a></li>
              </ul>
            </li>
          </ul>
        </li>
      </ul>
      <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
  </aside>

</template>
<style>
  .level1 {
    margin-left: 15px;
    text-align: left;
  }

  .level2 {
    margin-left: 15px;
    text-align: left;
  }

  .level3 {
    margin-left: 15px;
    text-align: left;
  }
</style>
<script>
import userImg from '@/assets/img/user2-160x160.jpg'

export default {
  data () {
    return {
      name: 'LeftNavigation',
      userImg: userImg
    }
  }
}
</script>
